package cn.saas.chooseholeview;

import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ChooseHoleView mChooseHole = (ChooseHoleView) findViewById(R.id.choose_hole_view);
        mChooseHole.setSelected(3);
        List<Integer> integers = new ArrayList<>();
        integers.add(1);
        mChooseHole.setHoles(integers);
        mChooseHole.setOnClick((isShow, hole) -> {
            Log.e("aaa", "onCreate: isShow " + isShow + "\nhole " + hole);
        });
    }
}